<?php echo $this->Session->flash(); ?>
<h1>UNIDADES PERTENECIENTES AL PROYECTO <?php echo $this->Session->read('cod'); ?></h1>


<table  id="tabla" class="tabla" >
    <thead>
        <tr>

            <th>AREA</th>
            <th>CLASE AGROLÓGICA</th>
            <th>VALOR ADOPTADO</th>
            <th></th>
            <th></th>

        </tr>
    </thead>
    <tbody>

        <?php
        foreach ($units as $unit):
            ?>

            <tr>

                <td><?php echo $unit['PhysiographicUnit']['area']; ?></td>
                <td><?php echo $unit['PhysiographicUnit']['clase_agrologica']; ?></td>
                <td><?php echo $unit['PhysiographicUnit']['valor_adoptado']; ?></td>
                <td><?php echo $ajax->link("Agregar valor", array('controller' => 'PhysiographicUnits', "action" => "edit_valor", $unit['PhysiographicUnit']['id']), array('update' => 'val_terreno', 'indicator' => 'loadval')) ?></td>
                
            </tr>
<?php endforeach; ?>
    </tbody>
</table>

<div id="loadval" style="display: none;">
<?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>

